home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.june.archive / 000007_crash!mars.let.uva.nl!wouter_Mon, 7 Jun 93 09:53:01 PST.msg < prev    next >
Text File  |  1993-08-31  |  1KB  |  40 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Mon, 7 Jun 93 09:53:01 PST
  3. Received: from mars.let.uva.nl by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0o2jnO-0000SkC; Mon, 7 Jun 93 09:11 PDT
  5. Received: by mars.let.uva.nl id AA21635
  6.   (5.65c/IDA-1.4.4 for amigae@bkhouse.cts.com); Mon, 7 Jun 1993 18:14:34 +0200
  7. Return-Path: <wouter@mars.let.uva.nl>
  8. Date: Mon, 7 Jun 1993 18:14:34 +0200
  9. Message-Id: <199306071614.AA21635@mars.let.uva.nl>
  10. X-Organisation: Department of Computational Linguistics,
  11.                 University of Amsterdam
  12.                 Spuistraat 134, 1012 VB Amsterdam, The Netherlands
  13. From: Wouter van Oortmerssen <wouter@mars.let.uva.nl>
  14. To: amigae@bkhouse.cts.com
  15. Subject: 
  16.  
  17. >> 
  18. >> Does anyone know a way/function to print out floats? Is there a procedure in
  19. >> either AmigaE itself, or ks2.04?
  20.  
  21. since E doesn't really support floats in 2.1b, there are no support
  22. functions for it either, but for now, this works:
  23.  
  24. PROC writeflt(n)
  25.   WriteF('\d.\z\d[4]\n',SpFix(n),SpFix(SpMul(SpAbs(SpSub(SpFlt(SpFix(n)),n)),100
  26. 0.)))
  27. ENDPROC
  28.  
  29. vary the "[4]" and "10000." for different layouts.
  30.  
  31. >> A hint.. if you've got ks2.04, use Fgets() instead of ReadStr(). ReadStr()
  32. >> is something like 30 times slower! (Replacing ReadStr() with Fgets() in EPP
  33. >> makes it a lot more usable! :)
  34.  
  35. ReadStr() is unbuffered IO and Fgets() is buffered... You can't
  36. always exchange them that easily as with EPP.
  37.  
  38. >> Son Le
  39.  
  40. Wouter.